/*
 * ResourceMonitor.java
 *
 * Created on May 5, 2009, 5:59 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package im.node;

import im.resources.*;
import jade.core.Agent;

/**
 *
 * @author bluejack
 */
public class MobileNode extends Agent{
    
    private ResourceStatus status;
    private String container;
    
    /** Creates a new instance of ResourceMonitor */
    public void setup() {
        Object [] argv = this.getArguments();
        container = (String)argv[0];
        
        setStatus(new ResourceStatus());
        addBehaviour(new UpdateResources(this));
        addBehaviour(new ResourceListen(this));
    }
    
    
    public void action() {
        //System.out.println("RM status: "+status);
    }
    
    public boolean done() {
        return false;
    }

    public ResourceStatus getStatus() {
        return status;
    }

    public void setStatus(ResourceStatus status) {
        this.status = status;
    }
    
    
}